using System;
using Preparation;


namespace Tester.GuiActions.Actions.Impl
{
    public class ViewErbAction : ViewTestItemBaseAction
    {
        public override void MainAction(object sender, EventArgs e)
        {
            if (Visible)
            {
                Test test = (Test)TesterList.Instance.SelectedItems[0].Tag; 
                GuiHelper.ShowFile(PreparationExecuter.Instance.GetCompilerErrorFile(test));
            }
        }
    }
}
